const realNumberArray = [4, 5.6, -9.8, 3.14, 42, 6, 8.34];
const squareList = arr => {
    "use strict";
    // 在这行以下修改代码
    const squaredIntegers = arr
        .filter(item => item > 0 && item % 1 === 0)
        .map(item => (item % 1 === 0 && item > 0 ? Math.pow(item, 2) : item));
    // 在这行以上修改代码
    return squaredIntegers;
};
// 测试你的代码
const squaredIntegers = squareList(realNumberArray);
console.log(squaredIntegers);
